<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/10/26 0026
 * Time: 上午 11:09
 */

header("content-type:text/html;charset=utf-8");
//得到查询的菜单
include ("./weChat.inc.php");
define("APPID","wxf7b9092279b1e3a8");
define("APPSECRET","8db0fce10ad12adb5ce15346eb3e9eb5");
define("TOKEN","WeiXin");
$Wechat = new WeChat(APPID,APPSECRET,TOKEN);
$file = "./temp2.jpg";
$type = 'image';
$Wechat->_addMedia($type,$file);